/**
 *
 * @author Bora SAYINER
 * @since Dec 28, 2014 11:25:12 AM
 * @version 1.0
 */
public class Driver {

	public static void main(String[] args) throws InterruptedException {
		System.out.println("Thread ID: " + Thread.currentThread().getId());
		System.out.println("##### Uygulama Başlatıldı #####");
//		StopWatch stopWatch = new StopWatch();
//		stopWatch.start();
		Chronometer chronometer = new Chronometer();
		chronometer.setDaemon(true);
		chronometer.setName("Bora's Thread");
		chronometer.start();
		
		Thread.sleep(5000);
		System.out.println("##### Uygulama Sonlandırıldı #####");
		// System.out.println("##### Uygulama Başlatıldı #####");
		// long beginTime = System.currentTimeMillis();
		// while (true) {
		// try {
		// Thread.sleep(1000);
		// } catch (InterruptedException e) {
		// e.printStackTrace();
		// }
		// long now = System.currentTimeMillis();
		// System.out.println((now - beginTime) / 1000);
		// }
		// System.out.println("##### Uygulama Sonlandırıldı #####");
	}
}
